package helpers.action;

public class RaiseAction implements Action {

	private static final long serialVersionUID = -4177806210930866701L;

	private final int maxRaise;
	private final int minRaise;

	private int decison = 0;

	public RaiseAction(int minRaise, int maxRaise) {
		this.minRaise = minRaise;
		this.maxRaise = maxRaise;
	}

	public void setDecison(int decison) {
		this.decison = decison;
	}

	public int getMinRaise() {
		return minRaise;
	}

	public int getMaxRaise() {
		return maxRaise;
	}

	@Override
	public String toString() {
		if (decison == 0) {
			return "Raise(min=" + minRaise + ", max=" + maxRaise + ")";
		} else {
			return "Raise(" + decison + ")";
		}
	}

	@Override
	public int getMoneyChange() {
		return decison;
	}

}
